<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
</head>
<body>
    <!-- enctype设为multipart/form-data说明body按照这种格式进行文件上传 -->
    <form action="upload" method="post" enctype="multipart/form-data">
        <input type="file" name="MyImage">
        <input type="submit" name="提交">
    </form>

</body>
</html>